package org.linlinjava.litemall.db.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import org.linlinjava.litemall.db.models.User;
import org.linlinjava.litemall.db.vo.UserVo;

import java.util.List;

public interface UserService extends IService<User> {

    public UserVo findUserVoById(Long userId) ;

    public User queryByOid(String openId) ;

    public IPage<User> querySelective(String username, String mobile, Integer page, Integer size);

    public int count() ;

    public List<User> queryByUsername(String username) ;

    public boolean checkByUsername(String username) ;

    public List<User> queryByMobile(String mobile);

    public List<User> queryByOpenid(String openid);

}
